<?php

namespace app\common\model\user;

use app\common\model\Model;
use app\common\model\User;
use traits\model\SoftDelete;

class Company extends Model
{

    use SoftDelete;


    // 表名
    protected $name = 'user_company';

    // 追加属性
    protected $append = [

    ];


    public function user()
    {
        return $this->belongsTo(User::class, 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}
